/*
Action Card Example
*/

function setupCardData() {
	card.name = "Example Action Card";
	card.desc = "An example action card that can be used on any player; it sets their HP to 50%.";
	card.refId = "se.kayarr.examples.firstaction";
	card.targetFlags = Targetable.ANY_PLAYER;
}

function onInit(action) {
}

function onUse(action, user, target) {
	target.health.percent = 50;
	action.session.narrate("The health of " + target.name + " is instantly set to 50% of max!");
}